<?php

/* UTILITY FUNCTIONS / CONFIG
 ******************************************************************************/

add_theme_support('menus');
add_theme_support('post-thumbnails');

add_image_size('featured-thumb', 700, 9999);
add_image_size('issue-thumb', 500, 9999);

function excerpt_length($length) {
	return 70;
}
function excerpt_more($output) {
	return '... <span><a href="'.get_permalink().'">continue reading</a></span>';
}
add_filter('excerpt_length', 'excerpt_length');
add_filter('excerpt_more', 'excerpt_more');
 
/* HELPERS
 ******************************************************************************/

require_once('resources/common.php');

/* API INTEGRATION
 ******************************************************************************/

// bring the API integration into functions so classes can be instantiated 
// without including seperate files
require_once('resources/grooveshark.php');
require_once('resources/lastfm.php');
require_once('resources/flickr.php');
require_once('resources/calendar.php');

?>